package com.example.whatrubbish.service;

import com.example.whatrubbish.model.Order;
import com.example.whatrubbish.utils.DemoException;
import com.example.whatrubbish.vo.OrderDetailVO;
import com.example.whatrubbish.vo.PageBean;

public interface OrderService {
    PageBean<OrderDetailVO> selectByCondition(Integer pageIndex, Integer pageSize, String userId, String status, String title);

    int insert(Order record) throws DemoException;

    int update(Order record);

    int delete(Long id);

    int cancel(Long id);
}
